/* =========================================
   COMMUNITIES HERO
========================================= */

.communities-hero {
    position: relative;
    min-height: 500px;

    display: flex;
    align-items: center;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}

.communities-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 15, 10, 0.78),
            rgba(20, 15, 10, 0.48)
        );

    z-index: 1;
}

.communities-hero .section-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.communities-hero-content {
    max-width: 800px;
    padding: 100px 0;
    margin-left: 30px;
    color: white;
}

.communities-hero-content .section-label {
    color: var(--royal-gold);
}

.communities-hero-content h1 {
    margin: 15px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.05;
}

.communities-hero-content p {
    max-width: 650px;

    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 650px) {

    .communities-hero {
        min-height: 430px;
    }

    .communities-hero-content {
        padding: 75px 0;
    }

    .communities-hero-content h1 {
        font-size: 42px;
    }

    .communities-hero-content p {
        font-size: 16px;
    }
}


/* =========================================
   COMMUNITIES SECTION
========================================= */

.communities-section {
    padding: 100px 0;
}


.communities-heading {
    max-width: 750px;

    margin: 0 auto 55px;

    text-align: center;
}


.communities-heading h2 {
    margin: 15px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(34px, 5vw, 54px);

    line-height: 1.15;

    color: var(--royal-primary);
}


.communities-heading p {
    color: #666;

    line-height: 1.8;
}


/* =========================================
   COMMUNITY GRID
========================================= */

.communities-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================
   COMMUNITY CARD
========================================= */

.community-card {
    overflow: hidden;

    background: white;

    border:
        1px solid
        rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.community-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px
        rgba(0, 0, 0, 0.12);
}


/* =========================================
   COMMUNITY IMAGE
========================================= */

.community-card-image {
    position: relative;

    display: block;

    height: 270px;

    overflow: hidden;

    background: #eee;
}


.community-card-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.community-card:hover
.community-card-image img {
    transform: scale(1.05);
}


.community-number {
    position: absolute;

    top: 16px;

    left: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    background: var(--royal-primary);

    color: white;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================
   COMMUNITY CONTENT
========================================= */

.community-card-content {
    padding: 27px;
}


.community-label {
    color: var(--royal-gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;
}


.community-card-content h3 {
    margin: 10px 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    line-height: 1.2;

    color: var(--royal-primary);
}


.community-card-content p {
    margin: 0 0 20px;

    color: #666;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================
   COMMUNITY LINK
========================================= */

.community-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--royal-primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-decoration: none;

    transition:
        gap 0.25s ease;
}


.community-link span {
    font-size: 18px;
}


.community-link:hover {
    gap: 15px;
}


/* =========================================
   HERITAGE SECTION
========================================= */

.community-heritage {
    padding: 100px 0;

    background: #f7f5f0;
}


.community-heritage-grid {
    display: grid;

    grid-template-columns:
        1.4fr 0.6fr;

    gap: 60px;

    align-items: center;
}


.community-heritage-content h2 {
    margin: 15px 0 25px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.15;

    color: var(--royal-primary);
}


.community-heritage-content p {
    max-width: 700px;

    color: #555;

    line-height: 1.9;
}


.community-heritage-mark {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--royal-primary);

    color: white;

    text-align: center;
}


.community-heritage-mark span {
    color: var(--royal-gold);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}


.community-heritage-mark strong {
    margin: 8px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;
}


.community-heritage-mark small {
    font-size: 9px;

    letter-spacing: 1.5px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .communities-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .community-heritage-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .communities-hero {
        min-height: 430px;
    }


    .communities-hero-content {
        padding: 75px 0;
    }


    .communities-hero-content h1 {
        font-size: 42px;
    }


    .communities-hero-content p {
        font-size: 16px;
    }


    .communities-section,
    .community-heritage {
        padding: 70px 0;
    }


    .communities-grid {
        grid-template-columns: 1fr;
    }


    .community-card-image {
        height: 280px;
    }


    .community-heritage-mark {
        min-height: 210px;
    }

}